﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TibcoMessageAdmin
{
    public class Queue
    {
        public string QueueName { get; set; }
        public string Server { get; set; }
        public string User { get; set; }
        public string Password { get; set; }
        public string ID { get; set; }



        public override string ToString()
        {
            return string.Format("<QueueDetail ID='{0}'>{1}<Server>{2}</Server>{1}<Queue>{3}</Queue>{1}<User>{4}</User>{1}<Password>{5}</Password>{1}</QueueDetail>{1}", Guid.NewGuid().ToString("N"), Environment.NewLine, Server,  QueueName, User, Password);              
        }
    }

    public class QueueDetail
    {
        public string ID { get; set; }
        public string Display { get; set; }
        public override string ToString()
        {
            return  Display ;
        }
    }
}
